﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using QuanLyBanHang.BLL;
using QuanLyBanHang.DTO;
namespace QuanLyBanHang
{
    public partial class DangNhap : Form
    {
        public DangNhap()
        {
            InitializeComponent();
        }
        DangNhapcs dn = new DangNhapcs();
        private void btnDanhNhap_Click(object sender, EventArgs e)
        {
            DangNhapcs.TenDangNhap = textBox1.Text;
            DangNhapcs.MatKhau = textBox2.Text;
            if (textBox1.Text ==""  )
            {
                MessageBox.Show("Ten Dang Nhap khong duoc de trong va co khoang trong");
            }
            else if (textBox2.Text =="")
            {
                MessageBox.Show("Mat khau khong duoc de trong");
            }
            else
            {
                MessageBox.Show("Dang Nhap Thanh cong: " + DangNhapcs.TenDangNhap);
            }
        }

        private void DangNhap_Load(object sender, EventArgs e)
        {

        }
    }
}
